<%--
  Created by IntelliJ IDEA.
  User: wzm
  Date: 2023/5/5
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
	<title>Title</title>
</head>
<body>
<h1>scope01页面</h1>
<%--使用四大域对象分别往里面存值--%>
<%
	pageContext.setAttribute("key","pageContext");
    request.setAttribute("key","request");
    session.setAttribute("key","session");
	application.setAttribute("key","application");
%>

pageContext的值为：<%=pageContext.getAttribute("key")%>
request的值为：<%=request.getAttribute("key")%>
session的值为：<%=session.getAttribute("key")%>
application的值为：<%=application.getAttribute("key")%>

<%
request.getRequestDispatcher("/scope02.jsp").forward(request,response);
%>

</body>
</html>
